Skip to content

Nvim lua master#2024

Closed
yokowasis wants to merge 13 commits intonvim-lua:masterfrom
yokowasis:nvim-lua-master
Closed

Nvim lua master#2024
yokowasis wants to merge 13 commits intonvim-lua:masterfrom
yokowasis:nvim-lua-master

Conversation

@yokowasis
Copy link
Copy Markdown


NOTE
Please verify that the base repository above has the intended destination!
Github by default opens Pull Requests against the parent of a forked repository.
If this is your personal fork and you didn't intend to open a PR for contribution
to the original project then adjust the base repository accordingly.


Copilot AI review requested due to automatic review settings April 30, 2026 04:15
@yokowasis yokowasis closed this Apr 30, 2026
@yokowasis yokowasis deleted the nvim-lua-master branch April 30, 2026 04:17
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR significantly customizes the Kickstart Neovim configuration by enabling additional Kickstart modules, importing a large set of lua/custom/plugins/* runtime-config files (keymaps/opts/functions/etc.), and expanding LSP/formatter/debugging setup.

Changes:

  • Extend core init.lua with Telescope ignores, LSP + Mason tool installation changes, Conform formatter configuration, Treesitter parser installation changes, and enabling additional kickstart plugins/imports.
  • Add many lua/custom/plugins/*.lua modules that execute configuration at load time (opts/functions/keymaps/git/terminal/jupyter/startup/etc.) plus a custom plugins readme.
  • Add miscellaneous extra files (test.{jsx,tsx,py} and init.lua.bak).

Reviewed changes

Copilot reviewed 21 out of 21 changed files in this pull request and generated 18 comments.

Show a summary per file
File Description
test.tsx Adds a simple TSX component example file.
test.jsx Adds a simple JSX component example file.
test.py Adds a simple Python “hello world” script.
lua/kickstart/plugins/debug.lua Adds nvim-dap-virtual-text configuration to the DAP setup.
lua/custom/plugins/readme.md Adds setup notes/instructions for the custom Neovim config.
lua/custom/plugins/blank.lua Adds empty custom plugin spec placeholder.
lua/custom/plugins/99-keymaps.lua Adds extensive custom keymaps.
lua/custom/plugins/98-bookmarks.lua Adds empty custom plugin spec placeholder.
lua/custom/plugins/97-setup-plugins.lua Adds LuaSnip setup, folds persistence, conform config, clangd override, and CodeCompanion config.
lua/custom/plugins/57-jupyter-setup.lua Adds iron.nvim REPL and “send cell” functionality plus keymaps.
lua/custom/plugins/56-jupyter-plugin.lua Adds iron.nvim plugin spec.
lua/custom/plugins/55-startup.lua Adds session auto-load logic on startup.
lua/custom/plugins/53-window.lua Adds window resize keymaps.
lua/custom/plugins/52-terminal.lua Adds terminal helpers and git/snippet convenience commands.
lua/custom/plugins/51-navigation.lua Adds tab/window navigation and Neo-tree keymaps.
lua/custom/plugins/50-git.lua Adds git/neogit helpers and keymaps (pull/push/commit/reset/init-push).
lua/custom/plugins/01-opts.lua Adds many global options and OS detection flags.
lua/custom/plugins/01-functions.lua Adds helper functions (notify/job output, run/format helpers, scaffolding, buffer cleanup, etc.).
lua/custom/plugins/00-init.lua Adds/overrides plugin list in custom.plugins import (img-clip, neo-tree, flash, codecompanion, etc.).
init.lua.bak Adds a backup copy of init.lua content.
init.lua Modifies core Kickstart config (nerd font, clipboard, telescope defaults, LSP/Mason, formatters, treesitter, module imports).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +165 to +175
vim.api.nvim_create_user_command('GitInitPush', function()
local username = 'yokowasis'
local repo = vim.fn.fnamemodify(vim.loop.cwd(), ':t')
if repo == '' then
print 'Could not determine repository name from current directory'
return
end
local remote = 'https://github.com/' .. username .. '/' .. repo .. '.git'
local cmd = 'git init && git add . && git commit -m "Initial commit" && git branch -M main && gh repo create '
.. repo
.. ' --private --source=. --remote=origin --push'
Comment thread test.jsx
@@ -0,0 +1,9 @@
const Component = (props) => {
Comment on lines +26 to +29
- Install required Python packages:
```bash
pip install pynvim neovim
```
vim.keymap.set('n', '<leader>gr', RevertToCommitUnderCursor, { desc = 'Reset HEAD to commit under cursor + force push' })

vim.keymap.set('n', '<leader>ga', function()
local branchName = vim.fn.input 'Enter commit message: '
Comment thread init.lua
Comment on lines +762 to +765
-- by the server configuration above. Useful when disabling
-- certain features of an LSP (for example, turning off formatting for ts_ls)
server.capabilities = vim.tbl_deep_extend('force', {}, capabilities, server.capabilities or {})
require('lspconfig')[server_name].setup(server)
Comment thread init.lua.bak
@@ -0,0 +1,109 @@
--[[
Comment on lines +1 to +20
-- Smart buffer delete function (for <leader><down>)
local function smart_buffer_delete()
local buffers = vim.fn.getbufinfo { buflisted = 1 }
local listed_buffers = {}

-- Count only listed buffers (exclude help, quickfix, etc.)
for _, buf in ipairs(buffers) do
if buf.listed == 1 then
table.insert(listed_buffers, buf)
end
end

-- If this is the last buffer, quit Neovim
if #listed_buffers <= 1 then
vim.cmd 'quit'
else
vim.cmd 'bdelete'
end
end

Comment on lines +73 to +83
-- Setup clangd with system preference (if system clangd is available and preferred)
-- This will override the main lspconfig setup with additional arguments
local has_system_clangd = vim.fn.executable('clangd') == 1
local prefer_system_clangd = true -- Set to false if you want to use Mason's clangd

if has_system_clangd and prefer_system_clangd then
require('lspconfig').clangd.setup {
cmd = { 'clangd', '--background-index' },
}
end

Comment thread test.tsx
@@ -0,0 +1,9 @@
const Component = (props) => {
Comment thread test.py
@@ -0,0 +1 @@
print("hello world")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants